package model

import (
	"gorm.io/gorm"
	"zk3/petpal-service/config"
)

type Address struct {
	gorm.Model
	Name     string `gorm:"type:varchar(30);comment:姓名"`
	Tel      string `gorm:"type:char(11);comment:手机号"`
	AddressX string `gorm:"type:varchar(30);comment:详细地址"`
}

func FindAddress(a *[]Address) error {

	return config.DB.Find(&a).Error
}
